{include file='../../../PublicView/include.html'}
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
        <div class="taeapp admin-table-side  tips tips-small tips-notice tips-no-icon">
            <!--菜单部分-->
            <div class="taeapp admin-nav">
			{include file='../../../PublicView/shopleft.html'}
			</div>
            <!--菜单部分-->
        </div>
        <div class="taeapp admin-table-main">
            <!--内容部分-->
				<ul class="breadcrumb">
					<li><a href="/">互动到店</a> <span class="divider">/</span></li>
					<li>活动管理 <span class="divider">/</span></li>
					<li class="active">{$title}</li>
				</ul>
		
			<!--内容部分-->
			{include file='../../../PublicView/showmessage.html'}
			<div class="row">
			<div class="tips tips-small tips-info">
				<span class="x-icon x-icon-small x-icon-info"><i class="icon icon-white icon-info"></i></span>
				<div class="tips-content">
				<p>店铺id：{$sid}
			  用户名：{$usernick}
			  用户id：{$userid}
			  首次开通时间：{$jointime}
			  上次登录：{$logintime}</p></div>
			</div>
			
			  <div class="doc-content row">
				<div class="panel">
				  <div class="panel-header">
					<h3>系统概况</h3>
				  </div>
				  <div class="panel-body">
						<div class="row">
						  <div class="span13 doc-content offset3">
							<form class="form-horizontal well">
								{if !$cfg.curtool}
								<div class="control-group">
								  <label class="control-label">抽奖情况：</label>
								  <div class="controls">
								  <span class="control-text">您尚未进行配置，<a href="/?a=gamecfg&m=Shopmanage">点击这里</a>配置活动。</span>
								  </div>
								</div>
								{else}
								<div class="control-group">
								  <label class="control-label">抽奖情况：</label>
								  <div class="controls">
								  <span class="control-text">累计抽奖：{$cfg.lotts}次，中出奖品{$cfg.wins}次。</span>
								  </div>
								</div>
								<div class="control-group">
								  <label class="control-label">抽奖开关：</label>
								  <div class="controls" style="height:auto;margin-bottom:15px;">
								  <!-- <span class="control-text">{if $cfg.trads ==0 }新老客户均可抽奖{else}仅交易{$cfg.trads}次的老客户可以抽奖。{/if} </span><br /> -->
								  <!-- <span class="control-text">{if $cfg.goodrates==0}差评用户不可抽奖{else}仅好评用户可抽奖。{/if} </span><br /> -->
								  <!-- {if $cfg.norefound}<span class="control-text">仅无退款用户抽奖。 </span><br />{/if} -->
								  {if $cfg.order_payment>0}<span class="control-text">仅超过{$cfg.order_payment}元的订单号可抽奖。 </span><br />{/if}
								  {if $cfg.order_items_count>0}<span class="control-text">仅购买指定商品的订单号可抽奖（共{$cfg.order_items_count}款）。 </span><br />{/if}
								  {if $cfg.order_pay_time_start>0}<span class="control-text">仅{if $cfg.order_pay_time_start}{$cfg.order_pay_time_start|date_format:'%Y-%m-%d %H:%M:%S'}后{/if}<br />　{if $cfg.order_pay_time_end}{$cfg.order_pay_time_end|date_format:'%Y-%m-%d %H:%M:%S'}前{/if}付款的订单号可抽奖。 </span><br />{/if}
								  <!-- {if $cfg.sumpay>0}<span class="control-text">仅累计消费超过{$cfg.sumpay}元的用户可抽奖。 </span><br />{/if} -->
								  {if $cfg.collect==1}<span class="control-text">收藏店铺方可抽奖。 </span><br />{/if}
								  {if $cfg.brandid!=0}<span class="control-text">关注品牌({$cfg.brandid})方可抽奖。 </span><br />{/if}
								  <!-- {if $cfg.likeme}<span class="control-text">喜欢活动方可抽奖。  </span><br />{/if} -->
								  <!-- {if $cfg.followme}<span class="control-text">关注发起人方可抽奖。  </span><br />{/if} -->
								  </div>
								</div>
								<div class="control-group">
								  <label class="control-label">抽奖次数：</label>
								  <div class="controls" style="height:auto;margin-bottom:15px;">
								  {if $cfg.tms_newcomer>0}<span class="control-text">新用户可抽奖{$cfg.tms_newcomer}次。  </span><br />{/if}
								  {if $cfg.tms_everyday>0}<span class="control-text">每天参与可抽奖{$cfg.tms_everyday}次。  </span><br />{/if}
								  {if $cfg.order_pay_times>0}<span class="control-text">订单付款时可抽奖{$cfg.order_pay_times}次。  </span><br />{/if}
								  {if $cfg.order_success_times>0}<span class="control-text">订单完成时可抽奖{$cfg.order_success_times}次。  </span><br />{/if}
								  {if $cfg.tms_goodrate>0}<span class="control-text">订单好评时可抽奖{$cfg.tms_goodrate}次。  </span><br />{/if}
								  {if $cfg.order_payment_addon>0}<span class="control-text">订单金额超额时可累计次数，{if $cfg.order_payment_addon==10000}超几倍累计几次。{else}最多累计{$cfg.order_payment_addon}次。{/if}  </span><br />{/if}
								  <!-- {if $cfg.goodrate_times}<span class="control-text">每次好评可抽奖{$cfg.goodrate_times}次。 </span><br />{/if} -->
								  <!-- {if $cfg.everytrades}<span class="control-text">每{$cfg.everytrades}次交易完成可抽奖{$cfg.everytrades_times}次。 </span><br />{/if} -->
								  <!-- {if $cfg.everysumpay}<span class="control-text">每累计消费{$cfg.everysumpay}元完成可抽奖{$cfg.everysumpay_times}次。 </span><br />{/if} -->
								  </div>
								</div>
								{if $cfg.tms_cartadd>0}
								<div class="control-group">
								  <label class="control-label">购物车抽奖：</label>
								  <div class="controls" style="height:auto;margin-bottom:15px;">
								  <span class="control-text">{if $cart_items_count>0}共{$cfg.cart_items_count}款{else}所有{/if}商品，每加入一款到购物车可抽奖{$cfg.tms_cartadd}次。  </span><br />
								  </div>
								</div>
								{/if}
								{if $tool_type==3}
								<div class="control-group">
									<label class="control-label">游戏设定：</label>
									<div class="controls" style="height:auto;margin-bottom:15px;">
									{if $cfg.range_time==1}
									<span class="control-text">每10分钟一轮。 </span><br />	{/if}
									{if $cfg.range_time==2}
									<span class="control-text">每20分钟一轮。 </span><br />	{/if}
									{if $cfg.range_time==3}
									<span class="control-text">每30分钟一轮。 </span><br />	{/if}
									{if $cfg.range_time==4}
									<span class="control-text">每1小时一轮。 </span><br />	{/if}
									<span class="control-text">每轮第一名可抽奖{$cfg.game_lv1_times}次。 </span><br />
									<span class="control-text">每轮第二名可抽奖{$cfg.game_lv2_times}次。 </span><br />
									<span class="control-text">每轮第三名可抽奖{$cfg.game_lv3_times}次。 </span><br />
									<span class="control-text">每轮其他名次可抽奖{$cfg.game_def_times}次。 </span><br />
									</div>
								</div>
								{/if}
								{/if}
								<!--div class="control-group">
								  <label class="control-label">自动订单服务：</label>
								  <div class="controls">
								  <span class="control-text">
								  <a href="/?m=Shopmanage&c=Wins&a=leadorder">
								  {if $status==0}
								  <img data-ac="open" src="http://img04.taobaocdn.com/imgextra/i4/27390555/TB2.2QaaFXXXXXwXXXXXXXXXXXX_!!27390555-2-tae.png_160x160.jpg" class="curpoint js-zidong">
								  {else}
								  <img data-ac="close" src="http://img01.taobaocdn.com/imgextra/i1/27390555/TB21LY6aFXXXXXKXpXXXXXXXXXX_!!27390555-2-tae.png_160x160.jpg" class="curpoint js-zidong">
								  {/if}
								  </a>
								  </span>
								  </div>
								</div-->
							 
							</form>
						  </div>
						</div>
						<!--div class="row">
							  <div class="span12 doc-content offset3 well" {if $yanchi.s>=4}style="background:#ffb2b2"{/if}>
							  <div class="control-group">
								  <div class="controls">
								  <div class="span12">
									<h2>系统负载：</h2>
									<h3>订单延迟：{$yanchi.t}</h3>
									{if $yanchi.s==1}
									<div class="progress progress-striped">
									  <div class="bar" style="width: 10%;"></div>
									</div>
									{elseif $yanchi.s==2}
									<div class="progress progress-striped">
									  <div class="bar bar-info" style="width: 30%;"></div>
									</div>
									{elseif $yanchi.s==3}
									<div class="progress progress-striped">
									  <div class="bar bar-success" style="width: 50%;"></div>
									</div>
									{elseif $yanchi.s==4}
									<div class="progress progress-striped">
									  <div class="bar bar-warning" style="width: 70%;"></div>
									</div>
									{elseif $yanchi.s>=5}
									<div class="progress progress-striped">
									  <div class="bar bar-danger" style="width: 100%;"></div>
									</div>
									{/if}
								  </div>
								  </div>
								</div>
							  </div>
						</div-->
				  </div>
				</div>
			  </div>  
			
			</div>			
			<input type="hidden" class="type" value="{$type|default:0}" />
        <!--内容部分-->
        </div>
</div>